<#import "/freemarker/modeltype.ftl" as mt>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释&nbsp;
		<a class="btn btn-primary" href="#" onclick="javascript: read_message();">全部设为已读</a>
	</div>
	<div class="dataTables_title_right">
		<a class="btn btn-warning" href="#"><i class="icon-book icon-white"></i> 详情</a>
		<a class="btn btn-primary" href="#"><i class="icon-backward"></i> 改变状态</a>
		<a class="btn btn-danger" href="#"><i class="icon-trash"></i> 删除</a>
	</div>
</div>
<div id="tabs-1" style="padding-bottom:0px;">
	<table class="table table-bordered mailinbox">
		<thead>
		<tr>
			<th style="width:100px;">发送人</th>
			<th>标题</th>
			<th style="width:60px;">是否查看</th>
			<th style="width:150px;">发送时间</th>
			<th style="width:80px;">操作</th>
		</tr>
		</thead>
		<#list pageBean.resultList as message>
		<tbody>
			<tr class="unread" >
				<td>${(message.cun)!''}</td>
				<td>${(message.title)!''}</td>
				<td><#list list as iv><#if (message.code == iv[0])><#if (iv[1])><font color="color-red">是</font><#else>否</#if><#break></#if></#list></td>
				<td class="date">${(message.ct?string('yyyy-MM-dd'))!''}</td>
				<td style="text-align:right;"><div class="btn-group">
					<a class="btn btn-xs btn-warning icon-book icon-white" title="详情" onclick="javascript: detail_message('${message.code}');"></a>
					<a class="btn btn-xs btn-primary icon-backward" title="改变状态"  onclick="javascript: markUnread_message('${message.code}');"></a>
					<a class="btn btn-xs btn-danger icon-trash" title="删除" onclick="javascript: recycleReceiveMessage_message('${message.code}', '${message.cun}','${message.title}');"></a>
					</div>
				</td>
			</tr>
		</#list>
	</table>
	<#import "/freemarker/pagination.ftl" as p><@p.pagination pageBean 'queryMessage_message' />
</div>
